﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Li.Repository.IRepository
{
    public interface IBaseRepository<T> where T:class
    {
        void Add(T entity);
        void Delete(T entity);
        void RemoveRange(List<T> all);
        IQueryable<T> GetAll();
        //List<TEntity> ExecuteSelectQuery<TEntity>(string sql, params SqlParameter[] pars);
        //int ExecuteSqlExecuteSqlCommand(string sql, params SqlParameter[] pars);
        int Commit();
    }
}
